{include file="html.tags.tpl"}
{include file="html.header.tpl"}
{$banners}
<h2>Emails - Listagem</h2>

<table border="0" cellpadding="4" cellspacing="0" align="center" >
<thead>
<tr>
<td>#</td>
<td>Segmento</td>
<td>Nome</td>
<td>Email</td>
<td>Cadastro</td>
<td>Status</td>
<td colspan="2"></td>
</tr>
</thead>
{foreach from=$lista item=listar}
<tr bgcolor="{cycle values="#F0F0F1,#E0E0E0"}">
<td>{$listar.emlCod}</td>
<td>{$listar.segNom}</td>
<td>{$listar.emlNom}</td>
<td>{$listar.emlMail}</td>
<td>{$listar.emlDatIns|date_format:"%d/%m/%Y %H:%M:%S"}</td>
<td align="center">
    <a href="{$smarty.const.BASE_URL_ADM}emails/trocaStatus/{$listar.emlCod}/{($listar.emlSta=='A')?'I':'A'}" class="status">
        <img src="{$smarty.const.ADM_IMG_URL}{($listar.emlSta=='A')?'on':'off'}.png" alt="" height="16" width="16" />
    </a>
</td>
<td><a href="{$smarty.const.BASE_URL_ADM}emails/editar/{$listar.emlCod}">Editar</a></td>
<td><a href="{$smarty.const.BASE_URL_ADM}emails/excluir/{$listar.emlCod}">Excluir</a></td>
</tr>
{/foreach}
</table>
{$registros}
<br />
<center><strong>{$total}</strong> registros encontrados.</center>
<div class="pagination">
  <ul>
    {paginate_prev} 
        {paginate_middle format="page"} 
    {paginate_next}  {*paginate_combo format="page"*} 
  </ul>
</div>

{include file="html.footer.tpl"}